<template>
	<!-- <view class="u-form-item">
		<view class="flex py-3">
			<view class="flex items-center mb-0" :style="{width: labelWidth}">
				<view class="u-form-item__body__left__content">
					<text class="u-form-item__body__left__content__label justify-start" v-text="label"></text>
				</view>
			</view>
			<view class="flex items-center" :style="{width: 'calc(100% - ' + labelWidth + ')'}">
				<view class="flex-1" :class="{'mr-3': !needRightIcon}">
					<slot></slot>
				</view>
				<view v-if="needRightIcon" class="flex justify-center items-center px-3">
					<u-icon name="arrow-right"></u-icon>
				</view>
			</view>
		</view>
		<view v-if="borderBottom" class="form-line"></view>
	</view> -->
	<view class="flex flex-col mx-3 pb-6">
		<view class="text-black-33 font-bold mb-3_5 text-color-theme" v-text="label"></view>
		<slot></slot>
	</view>
</template>

<script>
	export default {
		props: {
			label: {
				type: String,
				default: ''
			},
			labelWidth: {
				type: String,
				default: '6.2em'
			},
			borderBottom: {
				type: Boolean,
				default: true
			},
			needRightIcon: {
				type: Boolean,
				default: true
			},
		},
		data() {
			return {
				
			}
		},
		methods: {
			
		}
	}
</script>

<style>
	.u-form-item {
	    display: flex;
	    flex-direction: column;
	    font-size: 14px;
	    color: #303133;
	}
	.u-form-item__body__left__content {
		position: relative;
		display: flex;
		flex-direction: row;
		align-items: center;
		padding-right: 4px;
		flex: 1;
	}
	.u-form-item__body__left__content__label {
	    display: flex;
	    flex-direction: row;
	    align-items: center;
		justify-content: center;
	    flex: 1;
	    color: #303133;
	    font-size: 15px;
	}
	.form-line {
		vertical-align: middle;
		margin: 0px; 
		border-bottom: 1px solid rgb(214, 215, 217); 
		width: 100%; 
		transform: scaleY(0.5); 
		border-top-color: rgb(214, 215, 217); 
		border-right-color: rgb(214, 215, 217); 
		border-left-color: rgb(214, 215, 217);
	}
</style>
